package com.ly.canal.service.impl;

import com.ly.canal.mapper.CanalModelMapper;
import com.ly.canal.service.CanalModelService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

@Service
public class CanalModelServiceImpl implements CanalModelService {

    @Autowired
    private CanalModelMapper canalModelMapper;

    @Override
    public int insertTestLog() {
        List<Map> list  = new ArrayList<>();
        for (int i = 0; i < 3 ; i++) {
            Map map = new HashMap();
            map.put("areaName","12");
            map.put("areaAddress","32");
            map.put("areaLongitude","22");
            map.put("areaLatitude","33");
            map.put("deviceIds","33");
            map.put("pictureUrl","44");
            map.put("provinceId","44");
            map.put("cityId","123");
            map.put("countyId","321");
            map.put("deptId","231");
            map.put("delflag","2321");
            list.add(map);
        }
        return canalModelMapper.insertTestLog(list);
    }
}
